package com.dgut.dao;

import com.dgut.domain.Log;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ILogDao {

    @Select("select * from log ")
    public List<Log> findLogs();


    @Insert("insert into log(content,ip,visitTime,url,during) values(#{content},#{ip},#{visitTime},#{url},#{during})")
    public int insert(Log log);
}
